package com.teacher.repository;

import com.teacher.entity.EvaluationCriterion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


// 评价标准信息
@Repository
public interface EvaluationCriterionRepository extends JpaRepository<EvaluationCriterion,Integer>,
        JpaSpecificationExecutor<EvaluationCriterion> {

    boolean existsByDimensionCodeAndClassifyCode(Integer dimensionCode, Integer classifyCode);

    void deleteEvaluationCriterionByIdIn(List<Integer> idList);
}
